package com.wx.javacode.poly_.polyarr_;

/**
 * ClassName:Student
 * Package :com.wx.javacode.poly_.polyarr_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/20 - 21:29
 */
public class Student extends Person {
    private double score;

    public Student(String name, int age, double score) {
        super(name, age);
        this.score = score;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String say() {
        return "学生" + super.say() + " score=" + score;
    }

    //特有的方法
    public void study() {
        System.out.println("学生 " + getName() + "正在学习");
    }
}